package com.sali.design_pattern.c_factory_method_pattern.lesson_03.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @description:
 * @author: zhang hang
 * @date: 2022/11/5 09:35.
 * @version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class User implements Serializable {

    // 主键
    private Long id;

    // 姓名
    private String username;

    // 密码
    private String password;

    // 1 普通用户；  2 vip用户；  3 svip用户
    private Integer vip;

    // 权重
    private Integer userWeight;

    public User(String username, Integer userWeight) {
        this.username = username;
        this.userWeight = userWeight;
    }

}
